package com.yan.yanbi.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yan.yanbi.model.dto.chart.ChartQueryRequest;
import com.yan.yanbi.model.dto.chart.GenChartByAiRequest;
import com.yan.yanbi.model.entity.Chart;
import com.yan.yanbi.model.vo.BiResponse;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 86177
 * @description 针对表【chart(图表信息表)】的数据库操作Service
 * @createDate 2024-02-26 12:44:27
 */
public interface ChartService extends IService<Chart> {

    BiResponse genChartAndSaveDb(MultipartFile multipartFile, GenChartByAiRequest genChartByAiRequest, HttpServletRequest request);

    BiResponse genChartAsyncByMq(MultipartFile multipartFile, GenChartByAiRequest genChartByAiRequest, HttpServletRequest request);

    void handleChartUpdateError(long chartId, String execMessage);

    Chart getChartById(long id);


    //分页包装类
    QueryWrapper<Chart> getQueryWrapper(ChartQueryRequest chartQueryRequest);
}
